package com.xm.singleton;

/**
 * 饿汉式（Eager Initialization）
 */
public class AEager {
    //类加载时直接实例化
    private final static AEager instance = new AEager();
    //私有化构造函数，放置外部实例化
    private AEager() {}

    public static AEager getInstance() {
        return instance;
    }
}